package com.stroke.actions;

import com.stroke.core.Engine;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * Author: Igor Bubelov
 * Date: 3/6/11 9:53 PM
 */
public class PauseAction extends AbstractAction {
    public void actionPerformed(ActionEvent e) {
        if (Engine.getInstance().isPaused()) {
            Engine.getInstance().resume();
        } else {
            Engine.getInstance().pause();
        }
    }
}
